package com.tgy.dao.user;

import com.tgy.entity.SmbmsUser;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

/***
 * @ClassName: UserDao
 * @Description:
 * @Auther: 送一一块二向箔
 * @Date: 22:13 2021/12/9
 * @version : V1.0
 */
public interface UserDao {
    //登录验证
    public SmbmsUser getLoginUser(String userCode) throws SQLException;
    //修改密码
    public int changePassword (String userCode, String newPassword) throws SQLException;
    //查询用户数量
    public int getNum(String name, int roleCode);
    //获取用户列表
    List<SmbmsUser> getUserList(String userName, int userRole, int currentPageNo, int pageSize) throws Exception;
    //增加用户
    public boolean userAdd(SmbmsUser smbmsUser);


}
